import Vue from 'vue'
import Vuex from 'vuex'
import home from './modules/home'
import myorder from './modules/myorder'
import shopcart from "./modules/shopcart.js"
import trade from './modules/trade.js'
Vue.use(Vuex)

const state = {

}
const mutations = {

}
const actions = {

}
const getters = {
}
const modules = {
  // 模块的名字是这里的属性的名字
  home, myorder,shopcart,trade
}

export default new Vuex.Store({
  state,
  mutations,
  actions,
  getters,
  modules
})